package cn.lhf.myblog.service;

import cn.lhf.myblog.db.entity.User;
import cn.lhf.myblog.exception.EmailExisted;
import cn.lhf.myblog.exception.UserNameExisted;

public interface UserService {
    User loginByName(String username, String password);
    User register(User user) throws UserNameExisted, EmailExisted;
    User getUserById(int id);
}
